package com.xros.demo.fileserver.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Objects;

@Data
@TableName("file_magic_num")
public class FileMagicNumberEntity {

    @TableId
    private Long magicNumId;

    private String magicNum;

    private String fileSuffix;

    private Integer webRead;



    public boolean canWebRead(){

        if(webRead == null){
            return false;
        }
        return Objects.equals(1,webRead);
    }

}
